﻿using System.Threading.Tasks;

namespace Fast.Extensions.EventBus
{
    /// <summary>
    /// 集成事件处理器
    /// </summary>
    public interface IIntegrationEventHandler
    {

    }

    /// <summary>
    /// 泛型集成事件处理器
    /// </summary>
    /// <typeparam name="TIntegrationEvent"></typeparam>
    public interface IIntegrationEventHandler<in TIntegrationEvent> : IIntegrationEventHandler
        where TIntegrationEvent : IntegrationEvent
    {
        Task HandleAsync(TIntegrationEvent @event);
    }
}
